package com.iteaj.util.json;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * create time: 2018/9/19
 *
 * @author iteaj
 * @since 1.0
 */
public abstract class AbstractJson<T> implements Json {

    protected static final String DEFAULT_PATTERN = "yyyy-MM-dd hh:mm:ss";
    protected Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public abstract T original();

    @Override
    public String toString() {
        return toJsonString();
    }

    protected static class NotExists {
        private static NotExists notExists = new NotExists();

        public static NotExists getInstance(){return notExists;};
    }
}
